package com.cdsxt.po;

import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.cdsxt.base.BaseEntity;

@Entity
@Table(name = "${tableName}")
/**
 * @author 成都尚学堂 & mr zeng
 * 客服热线：028-65176856
 * 网址： www.cd-sxt.com
 * 
 * ${moduleInfo}模块
 */
public class ${className}Po extends BaseEntity {

	
	 <#list listField  as  field>
	 //${field.fieldInfo}
	private ${field.fieldType} ${field.fieldName};
	 </#list>
	
	 
	public ${className}Po() {
	}
	
	 <#list listField  as  field>
	public void set${'${field.fieldName}'? cap_first}(${field.fieldType}  ${field.fieldName}){
	 		this.${field.fieldName}=${field.fieldName};
	}
	 </#list>
	 
	 
	 <#list listField  as  field>
	public ${field.fieldType} get${'${field.fieldName}'? cap_first}(){
	 		return this.${field.fieldName};
	}
	 </#list>
	
	
	public String toString() {

		StringBuilder sb=new StringBuilder("\n${className}Po【数据信息】：");
		sb.append("父类的信息："+super.toString());
		sb.append("自己类的信息：");
		<#list listField  as  field>
		sb.append("${field.fieldName}");
		sb.append("=");
		sb.append(this.${field.fieldName});
		sb.append(", ");
		 </#list>
		
		return sb.toString();
	}

}
